import request from '@/utils/request'

export function list(params,type) {
    return request({
        url: '/app/template/list',
        method: 'get',
        params: params,
        type:type
    })
}

export function queryById(params){
    return request({
        url:'/app/template/queryById',
        method:'get',
        params:params
    })
}
export function del(params) {
    return request({
        url: '/app/template/delete',
        method: 'delete',
        params: params
    })
}


export function save(data){
    return request({
        url:'/app/template/save',
        method:'post',
        data:data
    })
}

export function update(data){
    return request({
        url:'/app/template/update',
        method:'put',
        data:data
    })
}
export function getTreeData(params,type) {
    return request({
        url: '/app/template/getTreeData',
        method: 'get',
        params: params,
        type:type
    })
}
